import Vue from 'vue'
import App from './App'
import {
	router,
	RouterMount
} from './common/router/router.js'
import routerLInk from './component/simple-router/link.vue'
Vue.component('simple-link',routerLInk)


Vue.use(router)

import baseInfo from './pages/base-info/base-info.vue'
Vue.component('baseInfo', baseInfo)
import danger from './pages/danger-info/danger-info.vue'
Vue.component('danger', danger)
import check from './pages/check-info/check-info.vue'
Vue.component('check', check)
import cuCustom from './component/colorui/components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
RouterMount(app, router, '#app')
// #endif
// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
